import 'package:base/widget/animation/anima_background_widget.dart';
import 'package:base/widget/particle/particle_widget.dart';
import 'package:flutter/material.dart';

class ParticlePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('粒子效果')),
      body: Stack(
        children: <Widget>[
          Positioned.fill(child: AnimatedBackground()),
          Positioned.fill(child: ParticlesWidget(30)),
          Positioned.fill(
            child: Center(
              child: Text(
                '粒子效果 Demo',
                style: TextStyle(
                    fontSize: 30,
                    fontWeight: FontWeight.bold,
                    color: Colors.white),
              ),
            ),
          ),
        ],
      ),
    );
  }
}
